<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<link href="../jquery-ui.min.css" rel="stylesheet" />
	</head>

	<body>
		<span>请输入：</span>
		<input id="tags" />
		<script src="../jquery-1.12.4.min.js"></script>
		<script src="../jquery-ui.min.js"></script>
		<script>
			var arr = ['java', 'c', 'javascript', 'android', 'mysql', 'html&css'];
			//给input元素使用自动完成插件功能
			$('#tags').autocomplete({
				source: arr
			});
		</script>
	</body>

</html>